package com.nulldev.util.net.irc;

public class IRCFactory {

	public static User createUser(final Server server, final String name) {
		final User user = new User(server, name, name, name, name);
		return user;
	}
	
	public static Server createServer(final String name, final String host, final int port, final String password, final boolean ssl) {
		final Server server = new Server(name, host, port, password, ssl);
		return server;
	}
	
	public static Connection connect(final Server server, final User user, final Callback callback) {
		Connection connection = new Connection(server, user, callback);
		connection.setAcceptAllSSLCerts(true);
		connection.connect();
		return connection;
	}
}
